package E2018;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;

public class Exam1 {
    public static void main(String[] args) {

        int sum = 0;
        int count = 0;
        for (int i=1;i<=9;i++){
            System.out.print(i+"张邮票邮资分别是：");
            for (int j=0;j<=5;j++){
                for (int k=0;k<=4;k++){
                   sum = j*3+k*5;
                   count = j+k;
                   if (count==i){
                       System.out.print(sum+",");
                   }
                }
            }
            System.out.println();
        }
    }
}
